<?php

if (!defined('ACCOUNT_INIT'))
	exit ('Access Denied!');
require_once('db_name_config.inc.php');
$db_core = new mysqli($_SERVER["kkyooDB_HOST"], $_SERVER["kkyooDB_NAME"],  $_SERVER["kkyooDB_PASS"], DB_NAME_AUTH);
if (mysqli_connect_errno()) {
	exit ('Connection Failure!');
}

function close_conn($link) {
	mysqli_close($link);
}

function free_result($result) {
	mysqli_free_result($result);
}

function next_result($link) {
	mysqli_next_result($link);
}

function fetch_array($result) {
	$i = 0;
	while ($row = $result->fetch_array()) {
		$row_arr[$i] = $row;
		$i++;
	}
	return $row_arr;
}
?>
